<h4><?php echo $site_title; ?></h4>
<?php
if ((isset($_SESSION['loginUsername'])) && ($section != "dashboard") && ($cid != "default")) echo " :: <em>You are Currently Working on ".$row_courses['jiu_course_id']."</em></p>"; 
echo "<ul id='nav'>";
if (isset($_SESSION['loginUsername'])) { 
	if ($section != "dashboard") { 
  	if ($section != "dashboard") echo "<li><a href='index.php?section=dashboard'>Dashboard</a></li>"; else echo "<li><strong>Dashboard</strong></li>"; 
	if (($cid != "default") && ($section != "view_proposal") && (nav_view_proposal($cid))) echo "<li><a href='index.php?section=view_proposal&amp;cid=".$cid."'>View Proposal</a></li>";
	echo "<form style='display: inline; font-family: inherit;' action='includes/process.inc.php?action=save' id='save' name='save' method='post'>";
	echo "
	<input type='hidden' name='url_last' value='".CurrentPageURL()."' />
	<input type='hidden' name='url_title_last' value='".$header_output."' />
    <input type='hidden' name='user_id' value='".$row_user['id']."'/>
    <input type='hidden' name='course_num' value='".$row_courses['jiu_course_id']."'/>
    ";
	} 
  if ($section != "dashboard") echo "<li><input type='submit' style='font-family: inherit;' value='Save My Place' class='save_progress'></li>\n</form>";
} // end if (isset($_SESSION['loginUsername']))
if ((!isset($_SESSION["loginUsername"])) && ($section != "login"))  { echo "<li><a href='index.php?section=login&action=login'>Log In</a></li>"; }
  elseif ((!isset($_SESSION["loginUsername"])) && ($section == "login")) { echo "<li><strong>Log In</strong></li>"; }
  elseif (isset($_SESSION["loginUsername"]))   { 
  echo "<form style='display: inline;' action='includes/process.inc.php?action=logout' id='logout' name='logout' method='post'>";
	echo "
	<input type='hidden' name='url_last' value='".CurrentPageURL()."' />
	<input type='hidden' name='url_title_last' value='".$header_output."' />
    <input type='hidden' name='user_id' value='".$row_user['id']."'/>
    <input type='hidden' name='course_num' value='".$row_courses['jiu_course_id']."'/>
    ";
  echo "<li><input type='submit' style='font-family: inherit' value='Log Out' class='save_progress'></li>";
  echo "</form>";
  }
echo "</ul>";
?>